home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2010 Summer - Disc 1
/
WN_Ete2010_CD1.iso
/
Onglet5
/
Weezo
/
Weezo setup.exe
/
{code_appDir}
/
www
/
themes
/
themePreviewMenu.php
< prev
next >
Wrap
PHP Script
|
2010-05-19
|
2KB
|
47 lines
<?php
if(!isset($_GET['theme'])) exit;
require(INCLUDE_DIR.'outputFunctions.php');
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'."\n";
echo '<HTML><HEAD>'."\n";
// No cache
//echo '<meta http-equiv="expires" content="0">'."\n";
// Charset
echo '<meta http-equiv="content-type" content="text/html; charset=utf-8">'."\n";
echo cfScriptLink('common.js');
// Title
echo '<TITLE>'.$_GET['theme'].'</TITLE>'."\n";
// Load theme :
echo '<link rel="stylesheet" type="text/css" href="'.cfUTF8Encode("/themes/".$_GET['theme'].'/theme.css')."\">\n";
// Find theme
$t=$_GET['theme'];
$_SESSION['lng']['genLogout']="Logout";
cfUSetVar('icon','default.jpg');
cfUSetVar('name','Admin');
$_SESSION['res'][0]['name']="Music";
$_SESSION['res'][0]['resourceJsLink']="#";
$_SESSION['res'][0]['resourceIcon']="/res/explorer/music1/resourceIcon.png";
$_SESSION['res'][0]['resourceTypeLabel']="Test";
$_SESSION['res'][1]['name']="Explorer";
$_SESSION['res'][1]['resourceJsLink']="#";
$_SESSION['res'][1]['resourceIcon']="/res/explorer/File1/resourceIcon.png";
$_SESSION['res'][1]['resourceTypeLabel']="Test";
$_SESSION['res'][2]['name']="Photo";
$_SESSION['res'][2]['resourceJsLink']="#";
$_SESSION['res'][2]['resourceIcon']="/res/explorer/photo2/resourceIcon.gif";
$_SESSION['res'][2]['resourceTypeLabel']="Test";
// Insert theme specific menu script
if(file_exists(cfAppDocRoot().'/themes/'.$_GET['theme'].'/menu.php')) require_once($_GET['theme'].'/menu.php');
// If theme has no specific menu, use common menu
else require_once('common/menu.php');
displayMenu();
?>
</body>
</html>